﻿#include "app.hpp"

int main(int argc,char **argv) {


	string path = argv[0];
	auto pos = path.find_last_of(PATH_SPLIT);

	string app_dir = path.substr(0, pos);
	app_dir += PATH_SPLIT;

	std::set<string> localIpSet;
	localIpSet.insert("172.16.100.91");
	bz::app::instance()->init(app_dir,app_dir, localIpSet,[](int& port) {
		cout << "port =" << port<<endl;
	});
	
	getchar();
	return 0;
}